//
//  EntryDetailViewController.m
//  MusicPlayer
//
//  Created by dllo on 15/5/27.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "EntryDetailViewController.h"
#import "NovelModel.h"
#import "NovelDataBase.h"
#import "MusicLibraryViewController.h"
@interface EntryDetailViewController ()

@property (nonatomic, retain) UITextField *nameText;

@property (nonatomic, retain) UITextField *miText;


@end

@implementation EntryDetailViewController

- (void)dealloc
{
    [_miText release];
    [_nameText release];
    [super dealloc];
}

- (void)loadView
{
    [super loadView];
    [self.view setBackgroundColor:[UIColor whiteColor]];
    
    UILabel *nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(60, 170, 60, 30)];
    nameLabel.text = @"用户名";
    [self.view addSubview:nameLabel];
    
    self.nameText = [[UITextField alloc] initWithFrame:CGRectMake(120, 170, 200, 30)];
    _nameText.placeholder = @"请输入用户名";
    _nameText.borderStyle = 3;
    //    nameText.layer.borderWidth = 2;
    [self.view addSubview:_nameText];
    
    
    UILabel *miLabel = [[UILabel alloc] initWithFrame:CGRectMake(60, 230, 60, 30)];
    miLabel.text = @"密码";
    [self.view addSubview:miLabel];
    
    self.miText = [[UITextField alloc] initWithFrame:CGRectMake(120, 230, 200, 30)];
    _miText.placeholder = @"请输入用户名";
    _miText.borderStyle = 3;
    //    nameText.layer.borderWidth = 2;
    [self.view addSubview:_miText];
    
    UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(150, 280, 60, 30)];
    [button setTitle:@"下一步" forState:UIControlStateNormal];
    [button setBackgroundColor:[UIColor blueColor]];
    [button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    
  
    
    
}








- (void)buttonAction:(id)sender
{
    
    MusicLibraryViewController *music = [[MusicLibraryViewController alloc] init];
//    [self presentViewController:music animated:YES completion:nil];
    
    [self.navigationController pushViewController:music animated:YES];
    
    
    UIAlertView *aler = [[UIAlertView alloc] initWithTitle:@"注册成功" message:nil  delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
    [aler show];
    [aler release];

}




- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
